#!/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/sbin/:/bin:/usr/sbin:/usr/bin
NAME=configure-interfaces
DESC="population of /etc/network/interfaces-file with current wireless interfaces"
CONFIGURE=/usr/local/bin/configure_interfaces
# Not used
#CONF=/etc/network/interfaces_wpa

[ -f $CONFIGURE ] || exit 1

case "$1" in
  start)
    echo "Starting $DESC: $NAME"
    $CONFIGURE
    ;;
  stop) 
    echo "Does nothing"
    ;;
  restart|reload|force-reload)
    echo "Restarting $DESC: $NAME"
    $CONFIGURE
    ;;
  *)
    echo "Usage: $0 {start|stop|restart|force-reload}" >&2
    exit 1
    ;;
esac
exit 0
